package com.aizuda.boot.modules.business.contract.service.impl;

import com.aizuda.boot.modules.business.contract.entity.ContractWorkflowTypeEntity;
import com.aizuda.boot.modules.business.contract.entity.dto.ProcessKeyTypeCache;
import com.aizuda.boot.modules.business.contract.mapper.ContractWorkflowTypeMapper;
import com.aizuda.boot.modules.business.contract.service.ContractWorkflowTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * 合同流程适用合同类型关联Service实现类
 *
 * @Author sangyirong
 * @Version 1.0
 * @Date 2025/5/20 13:36
 */
@Service
public class ContractWorkflowTypeServiceImpl extends ServiceImpl<ContractWorkflowTypeMapper, ContractWorkflowTypeEntity> implements ContractWorkflowTypeService {

    @Resource
    private ContractWorkflowTypeMapper contractWorkflowTypeMapper;


    @Override
    public ProcessKeyTypeCache getMaxProcessKeyByType(Integer typeId) {
       return contractWorkflowTypeMapper.getMaxProcessKeyByType(typeId);
    }
}